package org.kingkong.framework.web;

import java.util.ArrayList;
import java.util.List;

public abstract class Gridable<Row> {

	private List<Row> list;

	private Row[] selection;

	public Gridable() {
		list = new ArrayList<Row>();
	}

	public List<Row> getList() {
		return list;
	}

	public Row[] getSelection() {
		return selection;
	}

	public void setList(List<Row> list) {
		this.list = list;
	}

	public void setSelection(Row[] selection) {
		this.selection = selection;
	}

	public void onRowClick() {
		System.out.println("select :" + selection[0].toString());
	}
}
